import {IpcEvents} from '../events/ipcEvent';

export default class IpcWrapper {
  public static ipcRender: any = (window as any).tw.ipcRenderer || {};
  public static shell: any = (window as any).tw.shell || {};
  public static testLt() {
    IpcWrapper.shell.beep();
  }
  public static openUrlByDefaultBrower(url: string) {
    IpcWrapper.shell.openExternal(url);
  }
  public static sendMsg(msg: string) {
    return IpcWrapper.ipcRender.send(msg);
  }
}